import {formatMessage} from './intl';
import {Routes} from 'Shared/utils/routeManager';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.query',
            defaultMessage: '列表'
        })
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.detail',
            defaultMessage: '服务属性详情'
        }),
        format: '/{0}/detail'
    },
    update: {
        url: '/:id/update',
        title: formatMessage({
            id: 'routes.update',
            defaultMessage: '编辑'
        }),
        format: '/{0}/update'
    },
    assist: {
        url: '/assist',
        title: formatMessage({
            id: 'routes.assist',
            defaultMessage: '自定义辅料管理'
        }),
        format: '/assist'
    },
    assistAdd: {
        url: '/assist/add',
        title: formatMessage({
            id: 'routes.assistAdd',
            defaultMessage: '自定义辅料新增'
        }),
        format: '/assist/add'
    },
    assistUpdate: {
        url: '/assist/:id/update',
        title: formatMessage({
            id: 'routes.assistUpdate',
            defaultMessage: '自定义辅料修改'
        }),
        format: '/assist/{0}/update'
    },
});
export default routes;
